package com.tianquan.event;/**
 * @author starsea
 * @date 2024-09-20 下午1:46
 */

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 *@BelongsProject: uploaddemo
 *@BelongsPackage: com.tianquan.event
 *@Author: tianquan
 *@CreateTime: 2024-09-20  13:46
 *@Description: 监听发布邮箱事件
 *@Version: 1.0
 */

@Component
public class TestListener implements ApplicationListener<TestEvent> {


    @Override
    @EventListener
    public void onApplicationEvent(TestEvent event) {
        System.out.println(event.getEmail());
    }


}
